package cn.hl.sentinel;

import cn.hl.domain.MovieTicket;
import cn.hl.dto.MovieTicketDto;
import cn.hl.enums.GlobalExceptionCode;
import cn.hl.query.MovieTicketQuery;
import cn.hl.result.JSONResult;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

public class MovieFallBack {

    public static JSONResult saveOrUpdate(@RequestBody MovieTicket movieTicket){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }


    public static JSONResult delete(@PathVariable("id") Long id){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }


    public static JSONResult get(@PathVariable("id")Long id){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }



    public static JSONResult list(){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }


    public static JSONResult page(@RequestBody MovieTicketQuery query){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult buyMovieTicketById(@PathVariable("id")Long id) {
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult buyMovieTicketById(@RequestBody MovieTicketDto movieTicketDto) {
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult findMovieTicketByUserId(@PathVariable("id")Long id) {
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

}
